<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="dataUpload.title"/></title>
    <meta name="heading" content="<fmt:message key='dataUpload.heading'/>"/>
    <meta name="menu" content="YADataMenu"/>
    <link type="text/css" href="<c:url value='/scripts/jquery-ui/css/smoothness/jquery-ui-1.8.12.custom.css'/>" rel="stylesheet" />	
	<script type="text/javascript" src="<c:url value='/scripts/jquery-ui/js/jquery-1.5.1.min.js'/>"></script>
	<script type="text/javascript" src="<c:url value='/scripts/jquery-ui/js/jquery-ui-1.8.12.custom.min.js'/>"></script>
	<script>
	$(function() {
		$( "#dataUploadForm_day" ).datepicker();
	});
</script>
</head>

<s:form action="dataUpload" enctype="multipart/form-data" method="post" id="dataUploadForm">
    <li class="info">
        <fmt:message key="dataUpload.message"/>
    </li>
    <s:textfield key="day" required="false" cssClass="text medium"/>
    <s:textfield key="month" required="false" cssClass="text medium"/>
    <s:select key="fileType" list="fileTypes" listKey="description" listValue="description" cssClass="select"/>
    <s:file name="file" label="%{getText('dataUploadForm.file')}" cssClass="text file"/>
    <li class="buttonBar bottom">
        <s:submit key="button.upload" name="upload" cssClass="button"/>
        <input type="button" value="<fmt:message key="button.cancel"/>" class="button"
            onclick="this.form.onsubmit = null; location.href='mainMenu'"/>
    </li>
</s:form>

<script type="text/javascript">
    Form.focusFirstElement($('dataUploadForm'));
</script>